﻿using System;

namespace NormalGsearch
{
    class NormalGSearch
    {
        private static NormalGSearch normalGsearch;
        private NormalGSearchViewModel viewModel;
        private NormalGSearchController controller;

        private NormalGSearch(NormalGSearchViewModel viewModel)
        {
            this.viewModel = viewModel;
            controller = new NormalGSearchController(viewModel);
        }

        public static NormalGSearch Instance(NormalGSearchViewModel viewModel)
        {
            if (normalGsearch == null)
            {
                normalGsearch = new NormalGSearch(viewModel);
            }

            return normalGsearch;
        }
    }
}
